﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace CondominioG1.Dominio
{
    public class Residente{
    

        
        [Required(ErrorMessage = "El DNI es obligatorio")]
        [StringLength(8, ErrorMessage = "Máximo 8 caracteres")]
        public String Dni { get; set; }

        [Required(ErrorMessage = "Debe ingresar Nombres")]   
        public String Nombres { get; set; }

        [Required(ErrorMessage = "Debe ingresar Apellidos")]   
        public String Apellidos { get; set; }

         [Required(ErrorMessage = "Debe ingresar Edad")]
        public Int32 Edad { get; set; }

         [Required(ErrorMessage = "Debe ingresar Correo")] 
        public String Correo { get; set; }

         [Required(ErrorMessage = "Debe ingresar Clave")] 
        public String Clave { get; set; }

        public String Tipo { get; set; }
    }
}

